#!/bin/bash

if [ -f $1 ]
then
    echo "File $1 exists."
elif [ -d $1 ]
then
    echo "File $1 is a directory."
else
    echo "No such file or directory."
fi